<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>友邦保险</title>
<link href="platform.css" type="text/css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="css/validationEngine.jquery.css" />
<script type="text/javascript" src="js/jquery-1.6.min.js"></script>
<script type="text/javascript" src="js/jquery.validationEngine-zh_CN.js" charset="UTF-8"></script>
<script type="text/javascript" src="js/jquery.validationEngine.js"></script>
<script type="text/javascript" src="js/citycodes.js" charset="UTF-8"></script>
<script type="text/javascript" src="js/aiabase.js" charset="UTF-8"></script>
<script type="text/javascript">
var g_pid='<s:property escape="false" value="pid" />';
function ajaxSubmit(){
	var isValidate = $('#form1').validationEngine('validate');
	if(!isValidate){
		alert("请正确输入");
		setTimeout("$('#form1').validationEngine('hide')",4000);
		return;
	}
	
		$.ajax({
	   url:'../json/aia4Form1Json.action', 
	   dataType:'json',
	   cache:false,
	   timeout:10000,
	   async:false,
	   type:'POST',		
	   data:$("#form1").serialize(),
	   success:function(json)
		   {
			  if(json.success==true)
			  {		
					window.location.href="ok.action?pid="+g_pid+"&status=success";
					
			  }
			  else
			  {
				  alert("提交没有成功:"+json.message);
		
			  }
			},
		error:function(arg1,arg2)
		   {
				alert("浏览器提交失败:" + arg1 + " "+arg2);
		   }
	   });

}// ajaxSubmit() end

var PIC_INDEX=0;//当前显示索引
var PIC_TOKEN=0;//用于暂停
var PIC_COUNTS=0;//总计数
var PIC_PENDING_COUNT=0;//每点击一次就停 1下

//定时方法
function updatePictures(plusNumber, autoFlag){
	if(PIC_PENDING_COUNT>0 && autoFlag){
		PIC_PENDING_COUNT--;
		return;
	}
	
	PIC_INDEX+=plusNumber;
	if(PIC_INDEX>=PIC_COUNTS){
		PIC_INDEX=0;
	}else if(PIC_INDEX<=-1){
		PIC_INDEX=PIC_COUNTS-1;
	}
	doUpdatePictures(PIC_INDEX)
	
	if(!autoFlag){
		PIC_PENDING_COUNT = 1;
	}
}

//点击方法
function doUpdatePictures(index){
	PIC_INDEX = index;
	$(".pic_item").hide();
	$(".pic_item").eq(PIC_INDEX).show();
	doUpdateDot();
}

function doUpdateDot(){
	$("#mydot .mydot_td").removeClass('mydot_act_td');
	$("#mydot .mydot_td.jsclass_"+PIC_INDEX).addClass('mydot_act_td');
}
//SMS start

function sendSMS(){
var isValidate = !$('#form1').validationEngine('validateField','#QNXE_PHO');
	if(!isValidate){
		alert("请输入正确的手机号码");
		setTimeout("$('#form1').validationEngine('hide')",2000);
		return;
	}
	
	$('#resendDiv').show();
	$('#sendDiv').html('正在发送短信...');
	$.ajax({
		   url:'../json/prmSmsJson.jsp?'+Math.random(),
		   dataType:'json',
		   cache:false,
		   timeout:10000,
		   async:false,
		   type:'POST',		
		   data:{"mobile":$('#QNXE_PHO').val()},
		   success:function(json)
			   {
				  if(json.success==true)
				  {		
				 		$('#sendDiv').html('已向此号码发送免费的验证码短信。' + json.message);
				 		countTime();
				  }
				  else
				  {
					  $('#sendDiv').html("发送短信失败:"+json.message);
					  countTime();
				  }
				},
			error:function(arg1,arg2)
			   {
					$('#sendDiv').html("发生错误:" + arg1 + " "+arg2);
					countTime();
			   }
		   });

	
	return false;

}
var _token = 0;
var _second = 0;
function countTimeRun(){
	if(_second>=0){
		$('#resendLink').html('(还有'+_second+'秒)重新获取验证码');
		$('#resendLink').css('color','#7E7777');
		$('#resendLink').bind('click',function(){return false;});
		_second--;
	}else{
		clearInterval(_token);
		$('#resendLink').html('重新获取验证码');
		$('#resendLink').css('color','#FF0000');
		$('#resendLink').bind('click',sendSMS);
	}
}

function countTime(){
	_second = 180;
	_token = setInterval(countTimeRun,1000);
}

//SMS end
$(function(){
	initCitys();
	$('#sendLink').click(sendSMS); 
	$("#form1").validationEngine({scroll:false, promptPosition : "topLeft"}); //promptPosition:possible values topLeft, topRight, bottomLeft, centerRight, bottomRight
	$('#submitLink').click(function(){
	 	ajaxSubmit();
		return false;
	 });
	
    PIC_COUNTS=$(".pic_item").length;//总计数，只读
	if(PIC_COUNTS>1){
		$(".pic_item").each(function(i){
		    var myvar = $(this).find('.myword').html();
		    var tdElement = $(".mydot_table td").eq(i);
		    tdElement.find('.mydot_words').html(myvar);
		    tdElement.addClass('jsclass_'+i);
		    tdElement.find('.mydot_hidden').val(i);
		});
		
		$(".mydot_words").click(function(){
			var _hidden = $(this).parent('.mydot_td').find('.mydot_hidden');
			var _val = _hidden.val();
			if(_val!='init'){
				var tempIndex = parseInt(_val,10);
				doUpdatePictures(tempIndex);
			}
		});
		
		PIC_TOKEN =setInterval(function(){updatePictures(1, true);},45000);
		
		$(".mydot_td .mydot_hidden").each(function(){
			var _this = $(this);
			if(_this.val()=='init'){
				_this.parent('.mydot_td').addClass('mydot_empty');
			}
		});
	}
});

</script>
</head>
<body>
	<div class="bigdiv">
		<div class="top">
			<s:if test="vOplan.PL_IMAGE!=null && vOplan.PL_IMAGE!='' && vOplan.PL_IMAGE!=\"null\" ">
				<img class="topimg" src="../dbImage.jsp?id=<s:property value="vOplan.PL_IMAGE" />" />
			</s:if>
			<s:else> 
				<img class="topimg" src="images/top.jpg" alt="" />
			</s:else>
		</div>
		<form id="form1">
			<input type="hidden" name="QNXE_FROM" value="<s:property escape="false" value="pid" />"></input>
		<div class="content">
			<div class="left">
				<div class="left_inner">
				<div class="nofont" style="height:14px;"></div>
				<div id="mydot">
		  				<table class="mydot_table" 
		  				       style="width:100%; height:32px; font-size:12px; " 
		  				       width="100%" border="0" cellspacing="0" cellpadding="0">
						  <tr>
						    <td align="left" width="20%" class="mydot_td mydot_act_td" >	
						       <div class="mydot_words" ></div>
						       <input type="hidden" class="mydot_hidden" value="init" />
							</td>
						    <td valign="top" align="left" width="20%" class="mydot_td" style="height:32px; ">	
						       <div class="mydot_words" ></div>
						       <input type="hidden" class="mydot_hidden" value="init" />
							</td>
						    <td valign="top" align="left" width="20%" class="mydot_td" style="height:32px; ">	
						       <div class="mydot_words" ></div>
						       <input type="hidden" class="mydot_hidden" value="init" />
							</td>
						    <td valign="top" align="left" width="20%" class="mydot_td" style="height:32px; ">	
						       <div class="mydot_words" ></div>
						       <input type="hidden" class="mydot_hidden" value="init" />
							</td>
						    <td valign="top" align="left" class="mydot_td mydot_last_td" style="height:32px; ">	
						       <div class="mydot_words" ></div>
						       <input type="hidden" class="mydot_hidden" value="init" />
							</td>
						  </tr>
						  </table>
			  		
		  		</div>
			
			<div class="pic_item_parent">
				<s:if test="pictureList!=null">
			  		<s:iterator status="st" value="pictureList">
						<div class="pic_item">
						    <img src="../dbImage.jsp?id=<s:property value="EX_VALUE" />"  />
					  		<div class="myword">
					  		 <s:property value="EX_NAME" />
					  		</div>
					  	</div>
					</s:iterator>
			  	</s:if>
		  	</div>
           	 </div><!-- End of Left_inner -->
            </div><!-- End of Left -->
			<div class="right">
				<s:if test="status==\"success\"">
					<h4>您的信息提交成功！</h3>
				</s:if>
				<s:if test="vOplan.PL_FREETEXT3!=null && vOplan.PL_FREETEXT3!=\"\"">
					<h3><s:property escape="false" value="vOplan.PL_FREETEXT3" /></h3>
				</s:if>
				<s:else>
					<div class="nofont height10"></div>
				</s:else>
				<div class="tb_parent">
					<table border="0" cellspacing="0" cellpadding="0">
<s:iterator status="st" value="amountList">
<s:set name="fieldName" value='"NULL"'></s:set>
<s:set name="validateClass" value='"validateInit"'></s:set>

<s:if test='EX_FREEFLAG1=="Y"'>
	<s:set name="validateClass" value='"validate[required]"'></s:set>
</s:if>
<s:else>
	<s:set name="validateClass" value='""'></s:set>
</s:else>

<s:if test='EX_VALUE=="没有"'>
	<s:set name="fieldName" value='"MEIYOU"'></s:set>
</s:if>
<s:elseif test='EX_VALUE=="姓名"'>
	<s:if test='EX_FREEFLAG1=="Y"'>
		<s:set name="validateClass" value='"validate[required,custom[chinese]]"'></s:set>
	</s:if>
	<s:else>
		<s:set name="validateClass" value='"validate[custom[chinese]]"'></s:set>
	</s:else>
	<s:set name="fieldName" value='"QNXE_NAME"'></s:set>
</s:elseif>
<s:elseif test='EX_VALUE=="性别 "'>
	<s:set name="fieldName" value='"QNXE_SEX"'></s:set>
</s:elseif>
<s:elseif test='EX_VALUE=="年龄"'>
	<s:set name="fieldName" value='"QNXE_BIRTH"'></s:set>
	<s:if test='EX_FREEFLAG1=="Y"'>
		<s:set name="validateClass" value='"validate[required]"'></s:set>
	</s:if>
	<s:else>
		<s:set name="validateClass" value='""'></s:set>
	</s:else>
</s:elseif>
<s:elseif test='EX_VALUE=="电子邮件"'>
	<s:set name="fieldName" value='"QNXE_FREETEXT1"'></s:set>
	<s:if test='EX_FREEFLAG1=="Y"'>
		<s:set name="validateClass" value='"validate[required,maxSize[50]]"'></s:set>
	</s:if>
	<s:else>
		<s:set name="validateClass" value='"validate[maxSize[50]]"'></s:set>
	</s:else>
</s:elseif>
<s:elseif test='EX_VALUE=="手机号码"'>
	<s:if test='EX_FREEFLAG1=="Y"'>
		<s:set name="validateClass" value='"validate[required,custom[chinamobile]]"'></s:set>
	</s:if>
	<s:else>
		<s:set name="validateClass" value='"validate[custom[chinamobile]]"'></s:set>
	</s:else>
	<s:set name="fieldName" value='"QNXE_PHO"'></s:set>
</s:elseif>
<s:elseif test='EX_VALUE=="手机验证码"'>
	<s:set name="fieldName" value='"QNXE_FREETEXT5"'></s:set>
	<s:set name="validateClass" value='"validate[required,maxSize[6]]"'></s:set>
	<s:set name="EX_FREEFLAG1" value='"Y"'></s:set>
</s:elseif>
<s:elseif test='EX_VALUE=="营销员编码"'>
	<s:set name="fieldName" value='"QNXE_CODE"'></s:set>
	<s:if test='EX_FREEFLAG1=="Y"'>
		<s:set name="validateClass" value='"validate[required,minSize[9],maxSize[9]]"'></s:set>
	</s:if>
	<s:else>
		<s:set name="validateClass" value='"validate[minSize[9],maxSize[9]]"'></s:set>
	</s:else>
</s:elseif>
<s:elseif test='EX_VALUE=="自由输入字段"'>
	<s:set name="fieldName" value='"QNXE_BASE"'></s:set>
	<s:if test='EX_FREEFLAG1=="Y"'>
		<s:set name="validateClass" value='"validate[required,maxSize[100]]"'></s:set>
	</s:if>
	<s:else>
		<s:set name="validateClass" value='"validate[maxSize[100]]"'></s:set>
	</s:else>
</s:elseif>
<s:elseif test='EX_VALUE=="出生年"'>
	<s:set name="fieldName" value='"QNXE_FREETEXT2"'></s:set>
</s:elseif>
<s:elseif test='EX_VALUE=="出生月"'>
	<s:set name="fieldName" value='"QNXE_FREETEXT3"'></s:set>
</s:elseif>
<s:elseif test='EX_VALUE=="出生日"'>
	<s:set name="fieldName" value='"QNXE_FREETEXT4"'></s:set>
</s:elseif>
<s:elseif test='EX_VALUE=="图片验证码"'>
	<s:set name="fieldName" value='"QNXE_FREETEXT6"'></s:set>
	<s:set name="validateClass" value='"validate[required,maxSize[4]]"'></s:set>
	<s:set name="EX_FREEFLAG1" value='"Y"'></s:set>
</s:elseif>
<s:else>
</s:else>

<s:if test='EX_VALUE=="没有"'>
</s:if>
<s:elseif test='EX_VALUE=="性别"'>
	<tr>
		<td class="ltd"><s:if test='EX_FREEFLAG1=="Y"'><span class="redstar">*</span></s:if>
			<s:if test="EX_NAME!=null && EX_NAME!=\"\""><s:property value="EX_NAME" /></s:if>
			<s:else><s:property value="EX_VALUE" /> </s:else>
		:</td>
		<td class="rtd"><input name="QNXE_SEX" id="QNXE_SEX1" class="<s:property escape="false" value="validateClass" /> " type="radio" value="M" checked="checked"
								style="margin-right: 3px;" /> 男 <input name="QNXE_SEX" id="QNXE_SEX2" class="<s:property escape="false" value="validateClass" /> " type="radio" value="F"
								style="margin-right: 3px; margin-left: 15px;" />女</td>
	</tr>
</s:elseif>
<s:elseif test='EX_VALUE=="姓名" ||EX_VALUE=="电子邮件" ||EX_VALUE=="手机号码"'>
	<tr>
		<td class="ltd"><s:if test='EX_FREEFLAG1=="Y"'><span class="redstar">*</span></s:if>
			<s:if test="EX_NAME!=null && EX_NAME!=\"\""><s:property value="EX_NAME" /></s:if>
			<s:else><s:property value="EX_VALUE" /> </s:else>
		:</td>
		<td class="rtd">
		<input id="<s:property value="fieldName" />" name="<s:property value="fieldName" />"
		       class="<s:property escape="false" value="validateClass" /> fm_txt" type="text"></td>
	</tr>
</s:elseif>
<s:elseif test='EX_VALUE=="营销员编码"'>
	<tr>
		<td class="ltd"><s:if test='EX_FREEFLAG1=="Y"'><span class="redstar">*</span></s:if>
			<s:if test="EX_NAME!=null && EX_NAME!=\"\""><s:property value="EX_NAME" /></s:if>
			<s:else><s:property value="EX_VALUE" /> </s:else>
		:</td>
		<td class="rtd">
		<input id="<s:property value="fieldName" />" name="<s:property value="fieldName" />"
		       class="<s:property escape="false" value="validateClass" /> fm_txt" type="text">
		      
		</td>
	</tr>
	<tr>
		<td colspan="2"><div class="fm_label2">请输入9位保险营销员编号，输入不足9位时在前端加 0，如无推荐营销员，请填9个0</div></td>
	</tr>
</s:elseif>
<s:elseif test='EX_VALUE=="手机验证码"'>
   <tr>
		<td class="ltd">&nbsp;</td>
		<td class="rtd">
			    <div id="sendDiv" class="p_sendlink_parent">
					    	<a href="#" id="sendLink" class="p_sendlink" style="">
					    		点击获取验证码
					    	</a>
					    	<div style="clear:both;"></div>
				</div>
				
				<div id="resendDiv" style="display:none;  margin-right:30px;" >
			   		<span style="color:#7e7777;">如果180秒内没有收到校验短信，您可以点击&nbsp;</span><a href="#" id='resendLink' style="color:#7E7777;">重新获取验证码</a>
			    </div>
		</td>
	</tr>
	<tr>
		<td class="ltd"><s:if test='EX_FREEFLAG1=="Y"'><span class="redstar">*</span></s:if>
			<s:if test="EX_NAME!=null && EX_NAME!=\"\""><s:property value="EX_NAME" /></s:if>
			<s:else><s:property value="EX_VALUE" /> </s:else>
		:</td>
		<td class="rtd">
		<input id="<s:property value="fieldName" />" name="<s:property value="fieldName" />"
		       class="<s:property escape="false" value="validateClass" /> fm_txt" type="text"></td>
	</tr>
</s:elseif>
<s:elseif test='EX_VALUE=="年龄"'>
	<tr>
		<td class="ltd"><s:if test='EX_FREEFLAG1=="Y"'><span class="redstar">*</span></s:if>
			<s:if test="EX_NAME!=null && EX_NAME!=\"\""><s:property value="EX_NAME" /></s:if>
			<s:else><s:property value="EX_VALUE" /> </s:else>
		:</td>
		<td class="rtd">
			<select id="<s:property value="fieldName" />"  name="<s:property value="fieldName" />" class="<s:property escape="false" value="validateClass" /> fm_select">
				<option value="" >请选择</option>
				<option value="0">0</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> <option value="32">32</option> <option value="33">33</option> <option value="34">34</option> <option value="35">35</option> <option value="36">36</option> <option value="37">37</option> <option value="38">38</option> <option value="39">39</option> <option value="40">40</option> <option value="41">41</option> <option value="42">42</option> <option value="43">43</option> <option value="44">44</option> <option value="45">45</option> <option value="46">46</option> <option value="47">47</option> <option value="48">48</option> <option value="49">49</option> <option value="50">50</option> <option value="51">51</option> <option value="52">52</option> <option value="53">53</option> <option value="54">54</option> <option value="55">55</option> <option value="56">56</option> <option value="57">57</option> <option value="58">58</option> <option value="59">59</option> <option value="60">60</option> <option value="61">61</option> <option value="62">62</option> <option value="63">63</option> <option value="64">64</option> <option value="65">65</option> <option value="66">66</option> <option value="67">67</option> <option value="68">68</option> <option value="69">69</option> <option value="70">70</option>
			</select>
		</td>
	</tr>
</s:elseif>
<s:elseif test='EX_VALUE=="出生年"'>
	<tr>
		<td class="ltd"><s:if test='EX_FREEFLAG1=="Y"'><span class="redstar">*</span></s:if>
			<s:if test="EX_NAME!=null && EX_NAME!=\"\""><s:property value="EX_NAME" /></s:if>
			<s:else><s:property value="EX_VALUE" /> </s:else>
		:</td>
		<td class="rtd">
			<select id="<s:property value="fieldName" />"  name="<s:property value="fieldName" />" class="<s:property escape="false" value="validateClass" /> fm_select">
				<option value="" >请选择</option>
				<option value="1940">1940</option> <option value="1941">1941</option> <option value="1942">1942</option> <option value="1943">1943</option> <option value="1944">1944</option> <option value="1945">1945</option> <option value="1946">1946</option> <option value="1947">1947</option> <option value="1948">1948</option> <option value="1949">1949</option> <option value="1950">1950</option> <option value="1951">1951</option> <option value="1952">1952</option> <option value="1953">1953</option> <option value="1954">1954</option> <option value="1955">1955</option> <option value="1956">1956</option> <option value="1957">1957</option> <option value="1958">1958</option> <option value="1959">1959</option> <option value="1960">1960</option> <option value="1961">1961</option> <option value="1962">1962</option> <option value="1963">1963</option> <option value="1964">1964</option> <option value="1965">1965</option> <option value="1966">1966</option> <option value="1967">1967</option> <option value="1968">1968</option> <option value="1969">1969</option> <option value="1970">1970</option> <option value="1971">1971</option> <option value="1972">1972</option> <option value="1973">1973</option> <option value="1974">1974</option> <option value="1975">1975</option> <option value="1976">1976</option> <option value="1977">1977</option> <option value="1978">1978</option> <option value="1979">1979</option> <option value="1980">1980</option> <option value="1981">1981</option> <option value="1982">1982</option> <option value="1983">1983</option> <option value="1984">1984</option> <option value="1985">1985</option> <option value="1986">1986</option> <option value="1987">1987</option> <option value="1988">1988</option> <option value="1989">1989</option> <option value="1990">1990</option> <option value="1991">1991</option> <option value="1992">1992</option> <option value="1993">1993</option> <option value="1994">1994</option> <option value="1995">1995</option> <option value="1996">1996</option> <option value="1997">1997</option> <option value="1998">1998</option> <option value="1999">1999</option> <option value="2000">2000</option> <option value="2001">2001</option> <option value="2002">2002</option> <option value="2003">2003</option> <option value="2004">2004</option> <option value="2005">2005</option> <option value="2006">2006</option> <option value="2007">2007</option> <option value="2008">2008</option> <option value="2009">2009</option> <option value="2010">2010</option> <option value="2011">2011</option> <option value="2012">2012</option> <option value="2013">2013</option> <option value="2014">2014</option> 
			</select>
		</td>
	</tr>
</s:elseif>
<s:elseif test='EX_VALUE=="出生月"'>
	<tr>
		<td class="ltd"><s:if test='EX_FREEFLAG1=="Y"'><span class="redstar">*</span></s:if>
			<s:if test="EX_NAME!=null && EX_NAME!=\"\""><s:property value="EX_NAME" /></s:if>
			<s:else><s:property value="EX_VALUE" /> </s:else>
		:</td>
		<td class="rtd">
			<select id="<s:property value="fieldName" />"  name="<s:property value="fieldName" />" class="<s:property escape="false" value="validateClass" /> fm_select">
				<option value="" >请选择</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
			</select>
		</td>
	</tr>
</s:elseif>
<s:elseif test='EX_VALUE=="出生日"'>
	<tr>
		<td class="ltd"><s:if test='EX_FREEFLAG1=="Y"'><span class="redstar">*</span></s:if>
			<s:if test="EX_NAME!=null && EX_NAME!=\"\""><s:property value="EX_NAME" /></s:if>
			<s:else><s:property value="EX_VALUE" /> </s:else>
		:</td>
		<td class="rtd">
			<select id="<s:property value="fieldName" />"  name="<s:property value="fieldName" />" class="<s:property escape="false" value="validateClass" /> fm_select">
				<option value="" >请选择</option>
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
<option value="19">19</option>
<option value="20">20</option>
<option value="21">21</option>
<option value="22">22</option>
<option value="23">23</option>
<option value="24">24</option>
<option value="25">25</option>
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
<option value="29">29</option>
<option value="30">30</option>
<option value="31">31</option>
			</select>
		</td>
	</tr>
</s:elseif>
<s:elseif test='EX_VALUE=="自由输入字段"'>
	<tr>
		<td class="ltd"><s:if test='EX_FREEFLAG1=="Y"'><span class="redstar">*</span></s:if>
			<s:if test="EX_NAME!=null && EX_NAME!=\"\""><s:property value="EX_NAME" /></s:if>
			<s:else><s:property value="EX_VALUE" /> </s:else>
		:</td>
		<td class="rtd">
			<textarea rows="" cols=""  
			  id="<s:property value="fieldName" />"	name="<s:property value="fieldName" />" class="<s:property escape="false" value="validateClass" /> fm_textarea" ></textarea>
		</td>
	</tr>
</s:elseif>
<s:elseif test='EX_VALUE=="省市区"'>
	<tr>
		<td class="ltd"><s:if test='EX_FREEFLAG1=="Y"'><span class="redstar">*</span></s:if>
			<s:if test="EX_NAME!=null && EX_NAME!=\"\""><s:property value="EX_NAME" /></s:if>
			<s:else><s:property value="EX_VALUE" /> </s:else>
		:</td>
		<td class="rtd" style="padding-top:5px">
			<select id="province_id" name="QNXE_PROVINCE"  class="<s:property escape="false" value="validateClass" /> fm_select3" >
      <option value="">请选择</option>
    </select><span class="fm_label">省/直辖市</span><br />
	
	
	<select id="city_id"  name="QNXE_CITY" class="<s:property escape="false" value="validateClass" /> fm_select3" >
      <option value="">请选择</option>
    </select><span class="fm_label">市</span><br />
	
	<select id="dist_id"  name="QNXE_DISTRICT" class="validate[required] fm_select3" >
      <option value="">请选择</option>
    </select><span class="fm_label">区域</span>
		</td>
	</tr>
</s:elseif>
<s:elseif test='EX_VALUE=="图片验证码"'>
	<tr>
		<td class="ltd"><s:if test='EX_FREEFLAG1=="Y"'><span class="redstar">*</span></s:if>
			<s:if test="EX_NAME!=null && EX_NAME!=\"\""><s:property value="EX_NAME" /></s:if>
			<s:else><s:property value="EX_VALUE" /> </s:else>
		:</td>
		<td class="rtd">
		<input id="<s:property value="fieldName" />" name="<s:property value="fieldName" />"
		       class="<s:property escape="false" value="validateClass" /> fm_txt fm_txt2" type="text">
		 <span style="display:inline-block;width:77px;height:23px;vertical-align:top">
                	<image id="server_image" src="../xml/image.action?t=100" style="width:77px;height:23px;"></image>
                </span>
<span style="color:#6b6b6b;"><a style="color:#6b6b6b; text-decoration: none;" href="#" onclick="$('#server_image').attr('src','../xml/image.action?t='+(new Date()).getTime()); return false;">看不清楚</a></span>
		       </td>
	</tr>
</s:elseif>
<s:else>
	<tr>
		<td class="ltd"><s:if test='EX_FREEFLAG1=="Y"'><span class="redstar">*</span></s:if>
			<s:if test="EX_NAME!=null && EX_NAME!=\"\""><s:property value="EX_NAME" /></s:if>
			<s:else><s:property value="EX_VALUE" /> </s:else>
		(非法字段!):</td>
		<td class="rtd">
			<select name="<s:property value="fieldName" />" class="fm_select">
				<option value="" >请选择</option>
			</select>
		</td>
	</tr>
</s:else>

</s:iterator>
						<s:if test="vOplan.PL_FREETEXT4!=null && vOplan.PL_FREETEXT4!=\"\"">
							<tr>
								<td class="rtd" colspan="2">
									<h3><s:property escape="false" value="vOplan.PL_FREETEXT4" /></h3>
								</td>
							</tr>
						</s:if>
						<tr>
							<td class="ltd">&nbsp;</td>
							<td class="rtd">
								<a id="submitLink" href="javascript:void(0)" class="btn" >
								</a>
							</td>
						</tr>
					</table>
				</div>
				<!-- End of tb_parent -->
			</div>
			<!-- End of right -->

			<div class="clear"></div>
		</div>
		<!-- End of content -->
		</form>
	</div>
	<!-- End of bigdiv -->
	
<div id="loading" style="border: 2px solid #888888; background-color:#be0f34; padding:5px 20px; width:70px; color:#FFFFFF; position:absolute;top:10px; right:10px; left:auto; bottom:auto; z-index:999999; text-align:center; display:none">
正在处理...
</div>
<%@include file="c_ga.jsp" %>

<s:if test="status==\"success\"">
<!-- 1转化跟踪代码 start -->
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 973662391;
var google_conversion_language = "en";
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "llWKCMmX-gcQt9Gj0AM";
var google_conversion_value = 0;
var google_remarketing_only = false;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/973662391/?value=0&amp;label=llWKCMmX-gcQt9Gj0AM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>

<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 981013204;
var google_conversion_language = "zh_CN";
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "4tJ0COSM1AcQ1KXk0wM";
var google_conversion_value = 0;
var google_remarketing_only = false;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/981013204/?value=0&amp;label=4tJ0COSM1AcQ1KXk0wM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>

<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 985475533;
var google_conversion_language = "en";
var google_conversion_format = "2";
var google_conversion_color = "ffffff";
var google_conversion_label = "Y6p6CNPojggQzdP01QM";
var google_conversion_value = 0;
var google_remarketing_only = false;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/985475533/?value=0&amp;label=Y6p6CNPojggQzdP01QM&amp;guid=ON&amp;script=0"/>
</div>
</noscript>
<!-- 1转化跟踪代码 end -->
</s:if>
</body>
</html>